.editor-container {
  border: 1px solid var(--color-line1-1, #e8e8e8);
  border-radius: 4px;
  position: relative;

  &:not(:first-child) {
    border-top: 0;
    border-radius: 0 0 4px 4px;
  }

  // 按设计稿hack monaco的样式
  .margin-view-overlays {
    background: #eee;
  }
  .editor-loading {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .react-monaco-editor-container {
    overflow: hidden;
  }
}

.editor-container-image .monaco-editor,
.editor-container-image .monaco-editor-background,
.editor-container-image .inputarea .ime-input {
  background-color: rgba(255, 255, 254, 0.5) !important;
}
